/**
 * JAVACC DEMO 1.0
 * @copy right apache company All rights reserved. 
 * @Package com.apache.rpc.service.plugins  
 */
package com.apache.rpc.service.plugins;

import java.util.HashMap;
import java.util.Map;

import com.apache.api.manager.PluginConnector;
import com.apache.api.vo.ParamsVo;
import com.apache.rpc.common.XMLMapParse;

/**
 * description:  
 * @author Hou Dayu 创建时间：2016-10-31
 * @Copyright(c)2014:
 */
public class ServicePluginsForXml implements PluginConnector {

	/**
	 * TODO 简单描述该方法的实现功能（可选）.  
	 * @see PluginConnector#execute(ParamsVo)
	 */
	@SuppressWarnings("rawtypes")
	public Object execute(ParamsVo param) throws Exception {
		String params = param.getKey();
		Map<String, Object> headMap = new HashMap<String, Object>();
		Map<String, Object> bodyMap = new HashMap<String, Object>();
		XMLMapParse.instance().xmlGetData(params, headMap, bodyMap);
		param.setParams("headMap", headMap);
		param.setParams("bodyMap", bodyMap);
		return param;
	}

}
